﻿using System;
using System.Collections.Generic;

using DesignPattern.FactoryMethod.Product;

namespace DesignPattern.FactoryMethod
{
    /// <summary>
    /// IBM电脑工厂，生产IBM电脑
    /// </summary>
    public class IBMComputerFactory : FactoryComputer
    {
        public IBMComputerFactory()
        {
            Console.WriteLine("Begin : IBMComputerFactory CreateComputer");
        }
        /// <summary>
        /// 生产IBM电脑
        /// </summary>
        /// <returns></returns>
        public override Product.AbsComputerProduct CreateComputer()
        {
            return new IBMComputerProduct();
        }
    }
}
